using System;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 销售源
    /// </summary>
    public class Source : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 销售源名称
        /// </summary>
        [Required(ErrorMessage = "销售源名称不能为空")]
        [StringLength(50)]
        public string SourceName { get; set; }
        /// <summary>
        /// 销售源编码
        /// </summary>
        [Required(ErrorMessage = "销售源编码不能为空")]
        [StringLength(100)]
        public string SourceCode { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
        /// <summary>
        /// 退费折扣
        /// </summary>
        public decimal RDiscount { get; set; }
    }
}
